package com.wx_shop.api.util.wx.dto;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 微信支付结果通知对象
 * @author leiwuluan
 */
@SuppressWarnings("serial")
@XmlRootElement(name="xml")
public class WeixinPayDomain extends WeixinSign implements Serializable {

	@XmlElement public String appid;
	@XmlElement public String attach;
	@XmlElement public String mch_id;
	@XmlElement public String nonce_str;
	@XmlElement public String openid;
	@XmlElement public String out_trade_no;
	@XmlElement public String sign;
	@XmlElement public String total_fee;
	@XmlElement public String trade_type; 
	@XmlElement public String notify_url; // 回调url
	@XmlElement public String spbill_create_ip; // ip地址
	@XmlElement public String body;
	@XmlElement public String detail;
	
	@Override
	public String toString() {
		return "WeixinPayDomain [appid=" + appid + ", attach=" + attach
				+ ", mch_id=" + mch_id + ", nonce_str=" + nonce_str
				+ ", openid=" + openid + ", out_trade_no=" + out_trade_no
				+ ", sign=" + sign + ", total_fee=" + total_fee
				+ ", trade_type=" + trade_type + ", notify_url=" + notify_url
				+ ", spbill_create_ip=" + spbill_create_ip + ", body=" + body
				+ ", detail=" + detail + "]";
	}
}
